<?php

/**
 * This example comes directly from http://php.net.
 * @link http://be2.php.net/manual/en/function.array-udiff.php
 */
class cr {

  private $priv_member;

  function cr($val) {
    $this->priv_member = $val;
  }

  function getPriv_member() {
    return $this->priv_member;
  }

  static function comp_func_cr($a, $b) {
    if ($a->priv_member === $b->priv_member)
      return 0;
    return ($a->priv_member > $b->priv_member) ? 1 : -1;
  }

}

?>
